package com.huang.Service;

import com.huang.Pojo.Product;
import com.huang.Service.ServiceImpl.FeignClientConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-product",fallback = FeignClientConfig.class)
public interface Feign {
    //商品信息查询
    @RequestMapping("/product/{pid}")
    public Product product(@PathVariable("pid") Integer pid);
}
